function float_menu(){
	var winW = (window.innerWidth) ? window.innerWidth : document.body.offsetWidth;
	var winH = (window.innerHeight) ? window.innerHeight : document.body.offsetHeight;

	winW=(winW/2)-(document.getElementById('float_menu').offsetWidth/2);	
	document.getElementById('float_menu').style.left=""+winW+"px";
}

function anim_loading(){
	var tmp=document.getElementById('loading').innerHTML;

	if(tmp=="Loading..."){
		document.getElementById('loading').innerHTML="Loading";				
	}else if(tmp=="Loading"){
		document.getElementById('loading').innerHTML="Loading.";
	}else if(tmp=="Loading."){
		document.getElementById('loading').innerHTML="Loading..";
	}else if(tmp=="Loading.."){
		document.getElementById('loading').innerHTML="Loading...";
	}
}

function loading(on){
   if(on==0){
	document.getElementById('bgtrsp').style.visibility="hidden";
	document.getElementById('loading').style.visibility="hidden";
   }else{
	document.getElementById('bgtrsp').style.visibility="visible";
	document.getElementById('loading').style.visibility="visible";
	
	var winW = (window.innerWidth) ? window.innerWidth : document.body.offsetWidth;
	var winH = (window.innerHeight) ? window.innerHeight : document.body.offsetHeight;
	
	winW=(winW/2)-30;
	winH=(winH/2)-5;	

	document.getElementById('loading').style.left=""+winW+"px";
	document.getElementById('loading').style.top=""+winH+"px";
	
	setInterval("anim_loading()",250);
   }
}